// 管理所有的token值
export const SetToken = (token: string) => {
  sessionStorage.setItem("Uid", token);
};
export const GetToken = () => {
  return sessionStorage.getItem("Uid");
};
export const RemovedToken = () => {
  sessionStorage.removeItem("Uid");
};

export const SetLeave = (Leave: string) => {
  sessionStorage.setItem("Leave", Leave);
};
export const GetLeave = () => {
  return sessionStorage.getItem("Leave");
};
export const RemovedLeave = () => {
  sessionStorage.removeItem("Leave");
};
export const SetName = (Name: string) => {
  sessionStorage.setItem("Name", Name);
};
export const GetName = () => {
  return sessionStorage.getItem("Name");
};
export const RemovedName = () => {
  sessionStorage.removeItem("Name");
};

export const clear = () => {
  sessionStorage.clear();
};
